<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="dao.*"  %>
<%@page import="entity.*"  %>
<%@page import="bean.*,java.lang.reflect.Array"  %>
<%@page import="java.util.List"  %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="5">
<link rel="stylesheet" type="text/css" href="naive.css" />
<meta charset="UTF-8">
<title>学生照片</title>
</head>
<body>
<%
	request.setCharacterEncoding("utf-8");
	List<JavaBean> l=StudentDao.readOneList(Integer.parseInt(request.getParameter("cid")));
	for(JavaBean d:l){
		pageContext.setAttribute("d", d);
	}
%>
<h3 class="p2">显示姓名为 ${d.name}的学生照片</h3>
<center>
	
	<img width="30%" src="<c:url value='imgfile/${d.id}.jpg'/>"><br><br>
	<a href="upload.jsp?id=${d.id}">修改</a>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<a href="show.jsp">返回</a>
</center>
	
</body>
</html>